package ua.races.dao;

import ua.races.vo.Race;
import ua.races.vo.Horse;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface BookmakerDao {

    /**
     * Set coefficients on certain races
     * @param raceCoefs map : Key - Race, Value - Map : horse ---> coef
     * @return number of changed records
     * @throws SQLException if something goes wrong
     */
    int setCoefs(Map<Race, Map<Horse, Double>> raceCoefs) throws SQLException;

    /**
     * Returns list of all races bookmaker have to deal with (add coef)
     *
     * @return list of all races bookmaker have to deal with (add coef)
     * @throws SQLException if something goes wrong
     */
    List<Race> findAllRacesForBookmaker() throws SQLException;
}
